package com.service.impl;

import com.dao.RootDao;
import com.dao.impl.RootDaoImpl;
import com.pojo.Root;
import com.service.RootService;

/**
 * @Author hjb
 * @Version 1.0
 * @Contact 1754729389@qq.com
 */
public class RootServiceImpl implements RootService {

    private RootDao rootDao = new RootDaoImpl();

    public Root login(Root root) {

        return rootDao.queryRootByNameAndPassword(root.getUsername(), root.getPassword());

    }

}
